package cn.fintecher.ams.service.attendance.config;

import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Configuration;

/**
 * Created by Administrator on 2017/4/17.
 */
@Configuration
@AutoConfigureAfter(MybatisConfig.class)
public class MapperScannerConfig {

    public MapperScannerConfigurer mapperScannerConfigurer(){
        MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
        mapperScannerConfigurer.setSqlSessionFactoryBeanName("sqlSessionFactory");
        mapperScannerConfigurer.setBasePackage("cn.fintecher.ams.service.attendance.mapper");
      //  mapperScannerConfigurer.setAnnotationClass("org.apache.ibatis.annotations.Mapper");

        return mapperScannerConfigurer;
    }

}
